package com.wise.summer.v1.cms.content.productindustry;

import com.alibaba.fastjson.JSONArray;
import com.wise.entities.content.Product;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.AssertEnum;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.enums.ProductState;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_001000250001;
import static com.wise.model.content.ContentErrMsgs.Err_001000250002;
import static com.wise.model.content.ContentErrMsgs.Err_001000250003;
import static com.wise.model.content.ContentErrMsgs.Err_001000250005;

@Getter
@Setter
@Publish
@ApiInfo("添加行业")
public class AddProductIndustry extends BasicSummer<Product> {

	@ApiInfo("产品名")
	@NotBlank(msg = Err_001000250003)
	private String name;

	@ApiInfo("产品图片url")
	private JSONArray url;

	@ApiInfo("产品类别Id")
	@NotBlank(msg = Err_001000250005)
	private String categoryId;

	@ApiInfo("产品详情")
	private String content;

	@ApiInfo("发布状态")
	@AssertEnum(enumClass = ProductState.class ,msg = Err_001000250001)
	@NotNull(msg = Err_001000250002)
	private Integer state;

	@ApiInfo("菜单栏显示")
	private boolean showStatus;

	@ApiInfo("微页面地址")
	private String pageId;

	@ApiInfo("产品标题")
	private String title;

	@ApiInfo("产品简介")
	private String intro;

	@ApiInfo("排序")
	private Integer sort;

	@ApiInfo("新品推荐")
	private boolean newRecommend;

	@ApiInfo("推荐")
	private boolean recommend;

	@ApiInfo("用户手册URL")
	private String userGuideUrl;

	@ApiInfo("产品彩页URL")
	private String productIntroUrl;

	@ApiInfo("微页面名")
	private String pageName;

	@ApiInfo("路由ID")
	private String routeId;

	@ApiInfo("seo_title")
	private String seoTitle;

	@ApiInfo("关键词描述")
	private String seoDescribe;

	@ApiInfo("重定向url")
	private String reUrl;

	@ApiInfo("保存为草稿")
	private Boolean draftState;

	/**
	 * 网页标题
	 */
	@ApiInfo("网页标题")
	private String pageTitle;

	@ApiInfo("菜单栏图片")
	private String titlePic;
	/**
	 * 0 Product菜单
	 * 1 行业
	 */
	@ApiInfo("分类类型")
	private Integer categoryType;

	@ApiInfo("AR连接")
	private String arUrl;
}
